<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="./jquery-3.5.1.min.js"></script>
    <script src="./vue.js"></script>
    <title>Document</title>
</head>
<body>
    数量：<input type="text" id="num"><br>
    金额：<input type="text" id="money"><br>
    总计：<span id="zj"></span><br>
    <button id="btn">点击</button>
</body>
<script>
    $("#btn").click(function(){
        var num = $("#num").val();
        var money = $("#money").val();
        var zj = num*money
        console.log(zj);
        // var zj =$("#zj").val(num*money);
        $("span").append(`${zj}`)
        $("span").append(` `)
        
    })
   
    
</script>
</html>